<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>五彩导航</title>
    <style>
        .nav a {
            display: inline-block;
            width: 120px;
            height: 58px;
            line-height: 58px; /* 垂直居中 高度设置为和height一样 */
            text-decoration: none;
            text-align: center;
            background-color: pink;
            color: #fff;
        }
        .nav bg1 {
            background-image: url("img/logo.png");
        }
    </style>
</head>
<body>
    <div class="nav">
        <a href="#" class="bg1">五彩导航栏</a>
        <a href="#">五彩导航栏</a>
        <a href="#">五彩导航栏</a>
        <a href="#">五彩导航栏</a>
        <a href="#">五彩导航栏</a>
    </div>
</body>
</html>